// pages/house_property/house_property.js
var utils = require('../../utils/util.js');
var httpUrl = getApp().globalData.httpUrl;
var codeName = getApp().globalData.codeName;
Page({

  /**
   * 页面的初始数据
   */
  data: {
  
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that=this;
    var cityid=options.cityid;
    wx.setNavigationBarTitle({
      title:options.typename,
    })
    utils.http(httpUrl +"houserent",{
      code:codeName,
      cityid:cityid,
      modelid: options.id
    },function(res){
      console.log(res);
      that.setData({
        bannerList: res.lunbotu,
        houserent: res.houserent
      })
    })
    
  },

  //房产出售详情
  oNhouseDetailsTap:function(e){
    var id=e.currentTarget.dataset.id;
    wx.navigateTo({
      url: '../house_property/houseDetails/houseDetails?id='+id,
    })
  }
})